package com.gaofeng.customviewdemo

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity

open class BaseActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Log.i(TAG, "onCreate: ${this.localClassName}")
    }

    override fun onStart() {
        super.onStart()
        Log.i(TAG, "onStart: ${this.localClassName}")
    }

    override fun onRestart() {
        super.onRestart()
        Log.i(TAG, "onRestart:${this.localClassName} ")
    }

    override fun onResume() {
        super.onResume()
        Log.i(TAG, "onResume: ${this.localClassName}")
    }

    override fun onPause() {
        super.onPause()
        Log.i(TAG, "onPause: ${this.localClassName}")
    }

    override fun onStop() {
        super.onStop()
        Log.i(TAG, "onStop: ${this.localClassName}")
    }

    override fun onDestroy() {
        super.onDestroy()
        Log.i(TAG, "onDestroy: ${this.localClassName}")
    }

    companion object {
        private const val TAG = "BaseActivity"
    }
}
